using System.Collections.Generic;
using System.Linq;
using CQRS.Contract.Data;

namespace CQRS.Host
{
    public class QueryingContext
    {
        private List<Customer> _customers = new List<Customer>(new[]
                                                         {
                                                             new Customer() { Id=1, Addresses = new List<Address>(new[]
                                                                                                                      {
                                                                                                                          new Address(){Name = "Prague"},
                                                                                                                      })},
                                                         });

        public IQueryable<Customer> Customers
        {
            get
            {
                return _customers.AsQueryable();
            }
        }
    }
}